class LoginTagLib {

    def loginControl = {
        if(session.usuario){
            out << "${session.usuario.email} - "
            out << """[${link(action:"logout", controller:"usuario"){"Sair"}}]"""
        } else {
            out << """[${link(action:"login", controller:"usuario"){"Login"}}]"""
        }
    }


}
